package edu.sctu.nieyu.day20150515.texttwo;



import java.util.ArrayList;
import java.util.List;


/**
 * Created by user01 on 2015/5/12.
 */
public class StudentTwo extends Abstract {


    StudentMessage[] studentarray;
    public StudentTwo(StudentMessage[] studentarray){
        super(studentarray);
        this.studentarray = studentarray;
    }

    @Override
    public List<StudentMessage> getInformation() {
        List<StudentMessage> list = new ArrayList();


        for (int i = 0; i < 10 ; i++) {

            if(studentarray[i].getGrade()>60 && studentarray[i].getSex().equals("男")){

               list.add(studentarray[i]);

            }

        }
        return list;
    }

}
